#ifndef _LINKLIST_KERNEL_H
#define _LINKLIST_KERNEL_H

#include<stdio.h>
#include<stdlib.h>
#include "log.h"
#include "kernel_list.h"

typedef struct LinkList{
    int         data;
    struct      list_head  list;
}LinkList_t;

int LinkList_kernel_init(LinkList_t **LinkList);
//头插
int LinkList_kernel_headinsert(LinkList_t *head,int data);
//尾插
int LinkList_kernel_tailinsert(LinkList_t *head,int data);
//删除节点
int LinkList_kernel_delitem(LinkList_t *head,int index);
//删除链表
int LinkList_kernel_destory(LinkList_t *head);
//查询
int LinkList_kernel_select(LinkList_t *head);
#endif